package com.sinven.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * NideshopGoodsAttribute entity. @author MyEclipse Persistence Tools
 */
/**
 * 李志伟
 * 反向生成
 */
@Entity
@Table(name = "nideshop_goods_attribute", catalog = "csf")
public class GoodsAttribute implements java.io.Serializable {

    //主键ID
    private Integer id;
    //商品ID
    private Integer goodsId;
    //属性ID
    private Integer attributeId;
    //属性值
    private String value;

    // Constructors

    /** default constructor */
    public GoodsAttribute() {
    }

    /** full constructor */
    public GoodsAttribute(Integer goodsId, Integer attributeId,
                          String value) {
        this.goodsId = goodsId;
        this.attributeId = attributeId;
        this.value = value;
    }

    // Property accessors
    @Id
    @GeneratedValue
    @Column(name = "id", unique = true, nullable = false)
    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Column(name = "goods_id", nullable = false)
    public Integer getGoodsId() {
        return this.goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    @Column(name = "attribute_id", nullable = false)
    public Integer getAttributeId() {
        return this.attributeId;
    }

    public void setAttributeId(Integer attributeId) {
        this.attributeId = attributeId;
    }

    @Column(name = "value", nullable = false, length = 65535)
    public String getValue() {
        return this.value;
    }

    public void setValue(String value) {
        this.value = value;
    }

}